package gamagora.game.map.backgrounds
{
	import gamagora.game.OSWaterGenerator;
	import gamagora.game.animations.OSAnimation;
	import gamagora.game.animations.OSBird;
	import gamagora.game.animations.OSMonkey;
	import gamagora.game.map.OSBackground;
	import gamagora.game.utils.OSImages;
	
	public class OSBackground1 extends OSBackground
	{
		public function OSBackground1()
		{
			super(OSImages.N1P2);
		}
		
		protected override function create(animations:Vector.<OSAnimation>):void
		{
			var monkey1:OSMonkey = new OSMonkey(220, 205, OSAnimation.BACKGROUND3);
			monkey1.moveTo(470);
			var monkey2:OSMonkey = new OSMonkey(800, 235, OSAnimation.BACKGROUND3);
			monkey2.moveTo(600);
			
			animations.push(monkey1);
			animations.push(monkey2);
			//animations.push(new OSBird(1270, 130, true, true));
			
			// Oiseaux de backgrounds
			animations.push(new OSBird(580, 190, OSAnimation.BACKGROUND3));
			animations.push(new OSBird(620, 190, OSAnimation.BACKGROUND3));
			animations.push(new OSBird(660, 190, OSAnimation.BACKGROUND3));
			animations.push(new OSBird(700, 190, OSAnimation.BACKGROUND3));
			animations.push(new OSBird(740, 190, OSAnimation.BACKGROUND3));
			
			// Oiseau de map
			animations.push(new OSBird(364, 380, OSAnimation.NO_BACKGROUND));
			animations.push(new OSBird(344, 380, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(384, 380, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(414, 380, OSAnimation.BACKGROUND2));
			animations.push(new OSBird(444, 380, OSAnimation.BACKGROUND1));
			animations.push(new OSBird(464, 380, OSAnimation.BACKGROUND2));
			
			
/*
			_backgrounds.add(new OSBird(1270, 130, true, true));
			_backgrounds.add(new OSMonkeyCage(780, 150));
			animations.push(new OSBird(580, 190, OSAnimation.BACKGROUND3, false, 20));
			animations.push(new OSBird(620, 190, OSAnimation.BACKGROUND3, false, 20));
			animations.push(new OSBird(660, 190, OSAnimation.BACKGROUND3, false, 20));
			animations.push(new OSBird(700, 190, OSAnimation.BACKGROUND3, false, 20));
			animations.push(new OSBird(740, 190, OSAnimation.BACKGROUND3, false, 20));
*/
		}
	}
}